"""
    create by IAmFiveHigh on 2024/5/24
"""
from LA.Matrix import Matrix
from LA.Determinant import det

if __name__ == '__main__':
    m1 = Matrix([[2, 1, 7, -1],
                 [-1, 2, 4, 3],
                 [2, 1, 0, -1],
                 [3, 2, 2, 1]])
    print(f"矩阵{m1}的行列式值为{det(m1)}")

    m2 = Matrix([[1, 1, 1],
                 [1, -1, 6],
                 [-1, 1, 9]])
    print(f"矩阵{m2}的行列式值为{det(m2)}")

    m3 = Matrix([[1, 2],
                 [1, 2]])
    print(f"矩阵{m3}的行列式值为{det(m3)}")
